<?php
$mod = $_GET['mod'];
$id = isset($_GET['id'])?$_GET['id']:1;
$table = "partner";
$te = find("select * from $table where id='$id'",'single');
$title_add = 'Edit "Partners"';
?>

<div class="page-header">
    <div class="pull-left"><?= $title_add ?></div>
    <div class="pull-right"></div>
    <div class="clear"></div>
</div>

<form class="form-horizontal" action="<?= createAction($mod,$id) ?>" role="form" name="frmedit" method="post" enctype="multipart/form-data">
    <div class="form-group">
        <label class="col-sm-3 control-label">Menu Title :</label>
        <div class="col-sm-9">
            <input name="titlemenu" type="text" class="form-control" value="<?= $te['titlemenu'] ?>" >
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">Menu Title (Vietnamese) :</label>
        <div class="col-sm-9">
            <input name="titlemenu_vn" type="text" class="form-control" value="<?= $te['titlemenu_vn'] ?>" >
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">Keywords :</label>
        <div class="col-sm-9">
            <textarea name="meta_key" class="form-control" ><?= $te['meta_key'] ?></textarea>
        </div>
    </div>

    <div class="form-group">
        <label class="col-sm-3 control-label">Description :</label>
        <div class="col-sm-9">
            <textarea name="meta_des" class="form-control" ><?= $te['meta_des'] ?></textarea>
        </div>
    </div>

    <div class="form-group">
        <div class="col-sm-offset-3 col-sm-9">
            <button type="submit" class="btn btn-primary">Save</button>
            <button type="reset" class="btn btn-default">Reset</button>
        </div>
    </div>
    <input type="hidden" name="form_" value="edit">
</form>